//
//  BIDReceivedNoticeCell.m
//  cxgov
//
//  Created by mal on 16/3/6.
//  Copyright © 2016年 mal. All rights reserved.
//

#import "BIDReceivedNoticeCell.h"

@implementation BIDReceivedNoticeCell
@synthesize titleLabel;
@synthesize dateLabel;
@synthesize nameLabel;
@synthesize readFlagLabel;
@synthesize widthForReadFlagConstraint;
@synthesize leadingForTitleLabelConstraint;

- (void)awakeFromNib {
    // Initialization code
    readFlagLabel.clipsToBounds = YES;
    readFlagLabel.layer.cornerRadius = 5.f;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setReadFlag:(BOOL)bRead
{
    if(bRead)
    {
        //已读
        leadingForTitleLabelConstraint.constant = 0;
        widthForReadFlagConstraint.constant = 0;
        [self layoutIfNeeded];
    }
    else
    {
        //未读
        leadingForTitleLabelConstraint.constant = 8;
        widthForReadFlagConstraint.constant = 10;
        [self layoutIfNeeded];
    }
}

@end
